package cn.itrip.auth.service;

import cn.itrip.pojo.ItripUser;

public interface UserLogService {
    /**
     * 用户登录
     * @param userCode
     * @param userPassword
     * @return
     */
    ItripUser userLogin(String userCode, String userPassword) throws Exception;
    /**
     * 查询对应user Code用户
     * @param userCode
     * @return
     * @throws Exception
     */
    ItripUser userLogin(String userCode) throws Exception;

    /**
     * 保存用户
     * @param user
     * @return
     */
    Boolean saveUser(ItripUser user);
}
